package pers.qianyu.module.core.domain.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import pers.qianyu.module.core.comm.BaseEntity;

import java.util.Objects;

/**
 * @author mizzle rain
 * @date 2021-05-03 20:08
 */
@TableName("sys_resource")
public class SysResourcePO extends BaseEntity {
    private static final long serialVersionUID = -7635304670839373782L;

    private String signature;
    private String remark;
    private String uri;
    private String method;
    private Integer status;
    private String serv;

    public SysResourcePO() {
    }

    public String getServ() {
        return serv;
    }

    public void setServ(String serv) {
        this.serv = serv;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SysResourcePO that = (SysResourcePO) o;
        return Objects.equals(signature, that.signature) && Objects.equals(remark, that.remark) && Objects.equals(uri, that.uri) && Objects.equals(method, that.method) && Objects.equals(status, that.status) && Objects.equals(serv, that.serv);
    }

    @Override
    public int hashCode() {
        return Objects.hash(signature, remark, uri, method, status, serv);
    }
}
